package com.gw.vip.center.config;

import cn.binarywang.wx.miniapp.api.WxMaService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author GW
 * @description
 * @since 2022-04-10
 */
@Configuration
public class WxMaServiceConfig {

    @Value("${system.miniapp.appid}")
    private String appid;

    @Bean
    public WxMaService wxMaService(){
        return WxMaConfiguration.getMaService(appid);
    }
}
